package com.chouxiaozi.gperadvice;

import java.util.Observable;

public class GPer extends Observable {

    private String name = "生态圈";

    public String getName() {
        return name;
    }

    public void publishQuestion(Question question){
        System.out.println(question.getUserName() + "在" + this.name + "上提交了一个问题。");
        setChanged();
        notifyObservers(question);
    }
}
